<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Repetier-Firmware: src/ArduinoAVR/Repetier/gcode.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="repetier-logo-trans128.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">0.91</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('gcode_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">src/ArduinoAVR/Repetier/gcode.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gcode_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    This file is part of Repetier-Firmware.</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    Repetier-Firmware is free software: you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">    the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">    (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">    Repetier-Firmware is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">    along with Repetier-Firmware.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">*/</span>
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _GCODE_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _GCODE_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a><a class="code" href="gcode_8h.html#a11b2387a44dc0cf3642ddcbe0581276b">00021</a> <span class="preprocessor">#define MAX_CMD_SIZE 96</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">class </span>SDCard;
<a name="l00023"></a><a class="code" href="class_g_code.html">00023</a> <span class="keyword">class </span><a class="code" href="class_g_code.html">GCode</a>   <span class="comment">// 52 uint8_ts per command needed</span>
<a name="l00024"></a>00024 {
<a name="l00025"></a><a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">00025</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a>;
<a name="l00026"></a><a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">00026</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">params2</a>;
<a name="l00027"></a>00027 <span class="keyword">public</span>:
<a name="l00028"></a><a class="code" href="class_g_code.html#ae8b170dcb376fe60270f4675f84e4477">00028</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_g_code.html#ae8b170dcb376fe60270f4675f84e4477">N</a>; <span class="comment">// Line number</span>
<a name="l00029"></a><a class="code" href="class_g_code.html#a68dc0bf731afd0463b8e8cc4ed81c0f8">00029</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_g_code.html#a68dc0bf731afd0463b8e8cc4ed81c0f8">M</a>;
<a name="l00030"></a><a class="code" href="class_g_code.html#a8f7aab5ea8436167078632d62232a98a">00030</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_g_code.html#a8f7aab5ea8436167078632d62232a98a">G</a>;
<a name="l00031"></a><a class="code" href="class_g_code.html#ab3c4b737dfc5c78a6aba50dda616f7c3">00031</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#ab3c4b737dfc5c78a6aba50dda616f7c3">X</a>;
<a name="l00032"></a><a class="code" href="class_g_code.html#ac915220fb659eb2c5958a1ccd81b80d4">00032</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#ac915220fb659eb2c5958a1ccd81b80d4">Y</a>;
<a name="l00033"></a><a class="code" href="class_g_code.html#aa65967cca170d24dcd0d555df0d5ee4f">00033</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#aa65967cca170d24dcd0d555df0d5ee4f">Z</a>;
<a name="l00034"></a><a class="code" href="class_g_code.html#a5b514bbfa4713e7bcf9c6a367cb6ebfe">00034</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#a5b514bbfa4713e7bcf9c6a367cb6ebfe">E</a>;
<a name="l00035"></a><a class="code" href="class_g_code.html#a9ab4bd02302051f763e80ede43fcac71">00035</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#a9ab4bd02302051f763e80ede43fcac71">F</a>;
<a name="l00036"></a><a class="code" href="class_g_code.html#a15d9493667828f95bcd674193a8ed3bb">00036</a>     uint8_t <a class="code" href="class_g_code.html#a15d9493667828f95bcd674193a8ed3bb">T</a>;
<a name="l00037"></a><a class="code" href="class_g_code.html#a531ffbc18075585b12607aff08fec9b0">00037</a>     <span class="keywordtype">long</span> <a class="code" href="class_g_code.html#a531ffbc18075585b12607aff08fec9b0">S</a>;
<a name="l00038"></a><a class="code" href="class_g_code.html#ad510039b7e7f97aaedeeda277b423624">00038</a>     <span class="keywordtype">long</span> <a class="code" href="class_g_code.html#ad510039b7e7f97aaedeeda277b423624">P</a>;
<a name="l00039"></a><a class="code" href="class_g_code.html#a145f61de888f096c52a2945234a407b0">00039</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#a145f61de888f096c52a2945234a407b0">I</a>;
<a name="l00040"></a><a class="code" href="class_g_code.html#a7c20f6b5c2b8c830d450944735b761b3">00040</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#a7c20f6b5c2b8c830d450944735b761b3">J</a>;
<a name="l00041"></a><a class="code" href="class_g_code.html#a4c4b08e61e92b3da1ed512f4e006f34a">00041</a>     <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#a4c4b08e61e92b3da1ed512f4e006f34a">R</a>;
<a name="l00042"></a><a class="code" href="class_g_code.html#a5633b1433389cec21ade3811bbe9ca5b">00042</a>     <span class="keywordtype">char</span> *<a class="code" href="class_g_code.html#a5633b1433389cec21ade3811bbe9ca5b">text</a>; <span class="comment">//text[17];</span>
<a name="l00043"></a><a class="code" href="class_g_code.html#ad627b9fcc8742c59b50cc2ff75986fdf">00043</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#ad627b9fcc8742c59b50cc2ff75986fdf">hasM</a>()
<a name="l00044"></a>00044     {
<a name="l00045"></a>00045         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 2)!=0);
<a name="l00046"></a>00046     }
<a name="l00047"></a><a class="code" href="class_g_code.html#a354c07e91d9f07e5dca7e702c424a2be">00047</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a354c07e91d9f07e5dca7e702c424a2be">hasN</a>()
<a name="l00048"></a>00048     {
<a name="l00049"></a>00049         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 1)!=0);
<a name="l00050"></a>00050     }
<a name="l00051"></a><a class="code" href="class_g_code.html#a0fee0af21babbf94aaea313b312b67b2">00051</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a0fee0af21babbf94aaea313b312b67b2">hasG</a>()
<a name="l00052"></a>00052     {
<a name="l00053"></a>00053         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 4)!=0);
<a name="l00054"></a>00054     }
<a name="l00055"></a><a class="code" href="class_g_code.html#a59610b3c566738910cef263d6e314d2c">00055</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a59610b3c566738910cef263d6e314d2c">hasX</a>()
<a name="l00056"></a>00056     {
<a name="l00057"></a>00057         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 8)!=0);
<a name="l00058"></a>00058     }
<a name="l00059"></a><a class="code" href="class_g_code.html#aa9c73c80f058ed5aff18418857b9fc8c">00059</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#aa9c73c80f058ed5aff18418857b9fc8c">hasY</a>()
<a name="l00060"></a>00060     {
<a name="l00061"></a>00061         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 16)!=0);
<a name="l00062"></a>00062     }
<a name="l00063"></a><a class="code" href="class_g_code.html#a5ce957691cde1a890ea983593834c86a">00063</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a5ce957691cde1a890ea983593834c86a">hasZ</a>()
<a name="l00064"></a>00064     {
<a name="l00065"></a>00065         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 32)!=0);
<a name="l00066"></a>00066     }
<a name="l00067"></a><a class="code" href="class_g_code.html#aa6448ba2fc12604bd9981ae39273550b">00067</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#aa6448ba2fc12604bd9981ae39273550b">hasNoXYZ</a>()
<a name="l00068"></a>00068     {
<a name="l00069"></a>00069         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 56)==0);
<a name="l00070"></a>00070     }
<a name="l00071"></a><a class="code" href="class_g_code.html#a7db24ad7e9be70fcf07c0f8ed09f63d4">00071</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a7db24ad7e9be70fcf07c0f8ed09f63d4">hasE</a>()
<a name="l00072"></a>00072     {
<a name="l00073"></a>00073         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 64)!=0);
<a name="l00074"></a>00074     }
<a name="l00075"></a><a class="code" href="class_g_code.html#a92de511ac42283493d3cf4845f7825b0">00075</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a92de511ac42283493d3cf4845f7825b0">hasF</a>()
<a name="l00076"></a>00076     {
<a name="l00077"></a>00077         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 256)!=0);
<a name="l00078"></a>00078     }
<a name="l00079"></a><a class="code" href="class_g_code.html#a0bc3484c6cd5c74e6f4d3b5842c6451a">00079</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a0bc3484c6cd5c74e6f4d3b5842c6451a">hasT</a>()
<a name="l00080"></a>00080     {
<a name="l00081"></a>00081         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 512)!=0);
<a name="l00082"></a>00082     }
<a name="l00083"></a><a class="code" href="class_g_code.html#a7cba976d76f48125857f8265579d63b8">00083</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a7cba976d76f48125857f8265579d63b8">hasS</a>()
<a name="l00084"></a>00084     {
<a name="l00085"></a>00085         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 1024)!=0);
<a name="l00086"></a>00086     }
<a name="l00087"></a><a class="code" href="class_g_code.html#a72b307016fc4535d3cfb5ab45685b889">00087</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a72b307016fc4535d3cfb5ab45685b889">hasP</a>()
<a name="l00088"></a>00088     {
<a name="l00089"></a>00089         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 2048)!=0);
<a name="l00090"></a>00090     }
<a name="l00091"></a><a class="code" href="class_g_code.html#a1da244d7365de529cc6b0d25004fde0e">00091</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a1da244d7365de529cc6b0d25004fde0e">isV2</a>()
<a name="l00092"></a>00092     {
<a name="l00093"></a>00093         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 4096)!=0);
<a name="l00094"></a>00094     }
<a name="l00095"></a><a class="code" href="class_g_code.html#afd8cb53cedf0a0bb6e421e5dba2b063b">00095</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#afd8cb53cedf0a0bb6e421e5dba2b063b">hasString</a>()
<a name="l00096"></a>00096     {
<a name="l00097"></a>00097         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#a9575eb2cccc85ee4d0800ceca524e220">params</a> &amp; 32768)!=0);
<a name="l00098"></a>00098     }
<a name="l00099"></a><a class="code" href="class_g_code.html#ae14c39e21746b24bead2b12f84580957">00099</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#ae14c39e21746b24bead2b12f84580957">hasI</a>()
<a name="l00100"></a>00100     {
<a name="l00101"></a>00101         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">params2</a> &amp; 1)!=0);
<a name="l00102"></a>00102     }
<a name="l00103"></a><a class="code" href="class_g_code.html#aefa13cb17bef643abd208b729c8d2846">00103</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#aefa13cb17bef643abd208b729c8d2846">hasJ</a>()
<a name="l00104"></a>00104     {
<a name="l00105"></a>00105         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">params2</a> &amp; 2)!=0);
<a name="l00106"></a>00106     }
<a name="l00107"></a><a class="code" href="class_g_code.html#a08ac8451ce63fab8971d58eb9ace5f78">00107</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a08ac8451ce63fab8971d58eb9ace5f78">hasR</a>()
<a name="l00108"></a>00108     {
<a name="l00109"></a>00109         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">params2</a> &amp; 4)!=0);
<a name="l00110"></a>00110     }
<a name="l00111"></a><a class="code" href="class_g_code.html#a8e6c5c0ccbc59fc5d684c4cb0583ae7e">00111</a>     <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="class_g_code.html#a8e6c5c0ccbc59fc5d684c4cb0583ae7e">getS</a>(<span class="keywordtype">long</span> def)
<a name="l00112"></a>00112     {
<a name="l00113"></a>00113         <span class="keywordflow">return</span> (<a class="code" href="class_g_code.html#a7cba976d76f48125857f8265579d63b8">hasS</a>() ? <a class="code" href="class_g_code.html#a531ffbc18075585b12607aff08fec9b0">S</a> : def);
<a name="l00114"></a>00114     }
<a name="l00115"></a><a class="code" href="class_g_code.html#a456e07f5d7f05f2b881221b84bd4d3e1">00115</a>     <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="class_g_code.html#a456e07f5d7f05f2b881221b84bd4d3e1">getP</a>(<span class="keywordtype">long</span> def)
<a name="l00116"></a>00116     {
<a name="l00117"></a>00117         <span class="keywordflow">return</span> (<a class="code" href="class_g_code.html#a72b307016fc4535d3cfb5ab45685b889">hasP</a>() ? <a class="code" href="class_g_code.html#ad510039b7e7f97aaedeeda277b423624">P</a> : def);
<a name="l00118"></a>00118     }
<a name="l00119"></a><a class="code" href="class_g_code.html#a308eedbe63c4ddf89087fcd169788bd7">00119</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#a308eedbe63c4ddf89087fcd169788bd7">setFormatError</a>() {
<a name="l00120"></a>00120         <a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">params2</a> |= 32768;
<a name="l00121"></a>00121     }
<a name="l00122"></a><a class="code" href="class_g_code.html#a6a7825dd8d9d215960db16ef1718ad55">00122</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a6a7825dd8d9d215960db16ef1718ad55">hasFormatError</a>() {
<a name="l00123"></a>00123         <span class="keywordflow">return</span> ((<a class="code" href="class_g_code.html#acfbeb6013604a585552007021f3236ba">params2</a> &amp; 32768)!=0);
<a name="l00124"></a>00124     }
<a name="l00125"></a>00125     <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#afc4ad19d7a76a9a51093686c3885e3f6" title="Print command on serial console.">printCommand</a>();
<a name="l00126"></a>00126     <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a5f5eab7f0c0bdd111bd7e9d4861d2db5">parseBinary</a>(uint8_t *buffer,<span class="keywordtype">bool</span> fromSerial);
<a name="l00127"></a>00127     <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#a6dbf91c2f4a8af6b5a9b71999aee74b2">parseAscii</a>(<span class="keywordtype">char</span> *line,<span class="keywordtype">bool</span> fromSerial);
<a name="l00128"></a>00128     <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#adace9de265fd44792952c40b1f450eb8" title="Removes the last returned command from cache.">popCurrentCommand</a>();
<a name="l00129"></a>00129     <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#a407282f1098168f0cd39ac76e71f9017">echoCommand</a>();
<a name="l00131"></a>00131     <span class="keyword">static</span> <a class="code" href="class_g_code.html">GCode</a> *<a class="code" href="class_g_code.html#af9d3b5b05e1283ab71cc535cf665afde">peekCurrentCommand</a>();
<a name="l00133"></a>00133     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#a87ea6987f10bd02eed4df0f5325addbc" title="Read from serial console or sdcard.">readFromSerial</a>();
<a name="l00134"></a>00134     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#ae32a41a97c43d9dcbf3adeb4c2166fcd">pushCommand</a>();
<a name="l00135"></a>00135     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#a91c98381184c2887d0d9fec16db0f073" title="Execute commands in progmem stored string. Multiple commands are seperated by  .">executeFString</a>(<a class="code" href="_h_a_l_8h.html#a6c7567c1812b6b6ca9067377476ddc4e">FSTRINGPARAM</a>(cmd));
<a name="l00136"></a>00136     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#a08303c4786704f45a8f45077195a7cd1" title="Computes size of binary data from bitfield.">computeBinarySize</a>(<span class="keywordtype">char</span> *ptr);
<a name="l00137"></a>00137 
<a name="l00138"></a><a class="code" href="class_g_code.html#a0d5f139d8b7a8991eefe478b40b1c60e">00138</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_g_code.html#a0d5f139d8b7a8991eefe478b40b1c60e">SDCard</a>;
<a name="l00139"></a><a class="code" href="class_g_code.html#a9100ab40407fd382a882168b2001f3a3">00139</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_u_i_display.html">UIDisplay</a>;
<a name="l00140"></a>00140 <span class="keyword">private</span>:
<a name="l00141"></a>00141     <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#aed1ee228d8ce301755b4be98266674f2">debugCommandBuffer</a>();
<a name="l00142"></a>00142     <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#a3854665196b54a5c671986a0a4c86d0a">checkAndPushCommand</a>();
<a name="l00143"></a>00143     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_g_code.html#aa839f66e08d9ef994b8ac4e3bcd80b7a">requestResend</a>();
<a name="l00144"></a><a class="code" href="class_g_code.html#a0bfee121128af24724c5cd4590b5975e">00144</a>     <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="class_g_code.html#a0bfee121128af24724c5cd4590b5975e">parseFloatValue</a>(<span class="keywordtype">char</span> *s)
<a name="l00145"></a>00145     {
<a name="l00146"></a>00146         <span class="keywordtype">char</span> *endPtr;
<a name="l00147"></a>00147         <span class="keywordtype">float</span> f = (strtod(s, &amp;endPtr));
<a name="l00148"></a>00148         <span class="keywordflow">if</span>(s == endPtr) <a class="code" href="class_g_code.html#a308eedbe63c4ddf89087fcd169788bd7">setFormatError</a>();
<a name="l00149"></a>00149         <span class="keywordflow">return</span> f;
<a name="l00150"></a>00150     }
<a name="l00151"></a><a class="code" href="class_g_code.html#a917cf7c98ac341743ea4d2e3ca750b71">00151</a>     <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="class_g_code.html#a917cf7c98ac341743ea4d2e3ca750b71">parseLongValue</a>(<span class="keywordtype">char</span> *s)
<a name="l00152"></a>00152     {
<a name="l00153"></a>00153         <span class="keywordtype">char</span> *endPtr;
<a name="l00154"></a>00154         <span class="keywordtype">long</span> l = (strtol(s, &amp;endPtr, 10));
<a name="l00155"></a>00155         <span class="keywordflow">if</span>(s == endPtr) <a class="code" href="class_g_code.html#a308eedbe63c4ddf89087fcd169788bd7">setFormatError</a>();
<a name="l00156"></a>00156         <span class="keywordflow">return</span> l;
<a name="l00157"></a>00157     }
<a name="l00158"></a>00158 
<a name="l00159"></a><a class="code" href="class_g_code.html#a4a5a5d3e1e9bb4c0aff0d3d46bfb702d">00159</a>     <span class="keyword">static</span> <a class="code" href="class_g_code.html">GCode</a> <a class="code" href="class_g_code.html#a4a5a5d3e1e9bb4c0aff0d3d46bfb702d" title="Buffer for received commands.">commandsBuffered</a>[<a class="code" href="_configuration_8h.html#af6168edd26520974b8660182d040051a" title="Cache size for incoming commands.">GCODE_BUFFER_SIZE</a>]; 
<a name="l00160"></a><a class="code" href="class_g_code.html#abd13795558ced02f98624f5f4145e8a1">00160</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#abd13795558ced02f98624f5f4145e8a1" title="Read position in gcode_buffer.">bufferReadIndex</a>; 
<a name="l00161"></a><a class="code" href="class_g_code.html#aa6d981ef713911418ac058dd7b540b88">00161</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#aa6d981ef713911418ac058dd7b540b88" title="Write position in gcode_buffer.">bufferWriteIndex</a>; 
<a name="l00162"></a><a class="code" href="class_g_code.html#aeb7bfeac07657aa04dbd1972987ef566">00162</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#aeb7bfeac07657aa04dbd1972987ef566" title="Current received command.">commandReceiving</a>[<a class="code" href="gcode_8h.html#a11b2387a44dc0cf3642ddcbe0581276b">MAX_CMD_SIZE</a>]; 
<a name="l00163"></a><a class="code" href="class_g_code.html#a7ae416230b7eaad8baf7876f704c8ed3">00163</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#a7ae416230b7eaad8baf7876f704c8ed3" title="Writing position in gcode_transbuffer.">commandsReceivingWritePosition</a>; 
<a name="l00164"></a><a class="code" href="class_g_code.html#a1da565449e87769fab2ad8ed464f7fb4">00164</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#a1da565449e87769fab2ad8ed464f7fb4" title="Flags the command as binary input.">sendAsBinary</a>; 
<a name="l00165"></a><a class="code" href="class_g_code.html#a46c7e4d550a684389e4a2679285c9426">00165</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#a46c7e4d550a684389e4a2679285c9426" title="Was the last successful command in binary mode?">wasLastCommandReceivedAsBinary</a>; 
<a name="l00166"></a><a class="code" href="class_g_code.html#a2cf13f01620e29dce6e5d5beae802a6a">00166</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#a2cf13f01620e29dce6e5d5beae802a6a" title="Flags true if we are reading the comment part of a command.">commentDetected</a>; 
<a name="l00167"></a><a class="code" href="class_g_code.html#a6857647781cb268444d0db1e4f740895">00167</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#a6857647781cb268444d0db1e4f740895" title="Expected size of the incoming binary command.">binaryCommandSize</a>; 
<a name="l00168"></a><a class="code" href="class_g_code.html#afb85e3546bdc44fa2de39178024313e6">00168</a>     <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_g_code.html#afb85e3546bdc44fa2de39178024313e6" title="Don&#39;t read until all commands are parsed. Needed if gcode_buffer is misused as storage for strings...">waitUntilAllCommandsAreParsed</a>; 
<a name="l00169"></a><a class="code" href="class_g_code.html#a1e2b8fd7b74923d5095f172fa664c1dc">00169</a>     <span class="keyword">static</span> uint32_t <a class="code" href="class_g_code.html#a1e2b8fd7b74923d5095f172fa664c1dc" title="Last line number received.">lastLineNumber</a>; 
<a name="l00170"></a><a class="code" href="class_g_code.html#ad5ce1c5e04a84d9eabc4eee25eaf7044">00170</a>     <span class="keyword">static</span> uint32_t <a class="code" href="class_g_code.html#ad5ce1c5e04a84d9eabc4eee25eaf7044" title="Line number of current command.">actLineNumber</a>; 
<a name="l00171"></a><a class="code" href="class_g_code.html#ad3540c61877acc4ccbc151e51c8f4571">00171</a>     <span class="keyword">static</span> int8_t <a class="code" href="class_g_code.html#ad3540c61877acc4ccbc151e51c8f4571" title="Waiting for line to be resend. -1 = no wait.">waitingForResend</a>; 
<a name="l00172"></a><a class="code" href="class_g_code.html#af50d7a77c05ce98bdf4ac183d3083345">00172</a>     <span class="keyword">static</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="class_g_code.html#af50d7a77c05ce98bdf4ac183d3083345" title="Number of commands stored in gcode_buffer.">bufferLength</a>; 
<a name="l00173"></a><a class="code" href="class_g_code.html#a83e62d4a64a948fdfb38781ece3c907a">00173</a>     <span class="keyword">static</span> <a class="code" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="code" href="class_g_code.html#a83e62d4a64a948fdfb38781ece3c907a" title="Time, when we got the last data packet. Used to detect missing uint8_ts.">timeOfLastDataPacket</a>; 
<a name="l00174"></a><a class="code" href="class_g_code.html#aeabd970d3e418187a82adf4fbb0894c0">00174</a>     <span class="keyword">static</span> uint8_t <a class="code" href="class_g_code.html#aeabd970d3e418187a82adf4fbb0894c0" title="Number of sequential format errors.">formatErrors</a>; 
<a name="l00175"></a>00175 };
<a name="l00176"></a>00176 
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 <span class="preprocessor">#endif</span>
<a name="l00179"></a>00179 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="gcode_8h.html">gcode.h</a>      </li>

    <li class="footer">Generated on Mon Dec 30 2013 18:53:02 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
